package jasper;

import java.util.HashMap;
import java.util.Map;


/*Customer Name	 Visits	Pageviews	Pages/Visit	Total time	Avg. Time on Site
China Unicom	3,222	11,524	3.58	100	0:02:28
AT&T	1,222	321,111	4.6	100	0:02:28
*/
public class Unit
{
	
	private int position;
	
	private String url;
	
	private int uniqueVisit;
	
	private String customerName;
	
	private String userName;
	
	private int visit;
	
	private int pageView = 1;
	
	private String duration;
	
	private Map sessionMap = new HashMap();

	private String sessionId;
	
	private String time;
	/**
	 * @return the customerName
	 */
	public String getCustomerName() {
		return customerName;
	}

	/**
	 * @param customerName the customerName to set
	 */
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	/**
	 * @return the visit
	 */
	public int getVisit() {
		
		return sessionMap.size();
	}

	/**
	 * @param visit the visit to set
	 */
	public void setVisit(int visit) {
		this.visit = visit;
	}

	/**
	 * @return the pageView
	 */
	public int getPageView() {
		return pageView;
	}

	/**
	 * @param pageView the pageView to set
	 */
	public void setPageView(int pageView) {
		this.pageView = pageView;
	}

	/**
	 * @return the duration
	 */
	public String getDuration() {
		return duration;
	}

	/**
	 * @param duration the duration to set
	 */
	public void setDuration(String duration) {
		this.duration = duration;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the position
	 */
	public int getPosition() {
		return position;
	}

	/**
	 * @param position the position to set
	 */
	public void setPosition(int position) {
		this.position = position;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the uniqueVisit
	 */
	public int getUniqueVisit() {
		return uniqueVisit;
	}

	/**
	 * @param uniqueVisit the uniqueVisit to set
	 */
	public void setUniqueVisit(int uniqueVisit) {
		this.uniqueVisit = uniqueVisit;
	}

	/**
	 * @return the sessionMap
	 */
	public Map getSessionMap() {
		return sessionMap;
	}

	/**
	 * @param sessionMap the sessionMap to set
	 */
	public void setSessionMap(Map sessionMap) {
		this.sessionMap = sessionMap;
	}

	/**
	 * @return the sessionId
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * @param sessionId the sessionId to set
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}
	
	
}
